<html>
<head>
    <!--不需要装饰加上这句-->
    <meta name="decorator" content="/decorators/blank"/>
</head>
<body>
<div class="modal fade" id="exampleModal" aria-labelledby="exampleModalLabel"
     data-backdrop="static" data-keyboard="false">
    <div class="modal-dialog" style="width: 65%" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                        aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="exampleModalLabel">创建岗位</h4>
            </div>
            <!-- BEGIN FORM-->
            <form action="" class="form-horizontal" id="createForm">
                <input type="hidden" name="resourceIds" id="resourceIds" value="${resourcesIds}"/>
                <input type="hidden" name="id" id="id"/>
                <input type="hidden" name="deptId" id="deptId"/>
                <input type="hidden" name="orgId" id="orgId"/>
                <div class="modal-body">
                    <div class="form-horizontal">
                        <div class="panel panel-heading">
                            <div class="form-group">
                                <label class="control-label col-sm-1" for="deptName">所属部门:<span class="required text-danger">*</span></label>
                                <div class="col-sm-2">
                                    <input type="text" class="form-control" placeholder="" name="deptName" id="deptName" readonly>
                                </div>
                                <label class="control-label col-sm-1" for="postName">岗位名称:<span class="required text-danger">*</span></label>
                                <div class="col-sm-2">
                                    <input type="text" class="form-control" autocomplete="off" id="postName" name="postName">
                                </div>
                                <label class="control-label col-sm-1" for="postCode">岗位编码:<span class="required text-danger">*</span></label>
                                <div class="col-sm-2">
                                    <input type="text" class="form-control" autocomplete="off" id="postCode" name="postCode">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label" for="remark">备注</label>
                                <div class="col-sm-8">
                                    <textarea type="text" class="form-control" placeholder="" name="remark" style="resize: none;" id="remark"></textarea>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-body">
                        <div class="panel panel-default">
                            <div class="form-group">
                                <div class="col-sm-4">
                                    <div class="panel-heading">
                                        <h2 class="panel-title">机构/部门</h2>
                                    </div>
                                    <div class="panel-body">
                                        <table id="departmentTree"></table>
                                    </div>
                                </div>
                                <div class="col-sm-8">
                                    <div class="panel-heading">
                                        <h2 class="panel-title">拥有资源列表</h2>
                                    </div>
                                    <div class="panel-body">
                                        <table id="resourceTreeDg"></table>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="modal-footer">
                        <button type="submit" class="btn btn-primary">提交</button>
                        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
</body>
</html>